Skip to content

Conversation

@wyattscarpenter
Copy link
Contributor

@wyattscarpenter wyattscarpenter commented Sep 11, 2025

Addresses #19252 (comment)

support this old anchor, for people on older mypy versions

This way, when people get the old documentation link, it will continue to go to the right place.

I have looked at the documentation that gets generated locally to see if everything still works. It does. In our vast panoply of documentation, we now have two very similar refs, no-strict-optional and no_strict_optional (used in https://mypy.readthedocs.io/en/stable/common_issues.html#no-errors-reported-for-obviously-wrong-code to link to https://mypy.readthedocs.io/en/stable/command_line.html#no-strict-optional) but the software handles them fine, without getting confused.

Not sure if this will work, since something else has the same anchor on a different page... See python#19252, though.
@wyattscarpenter
Copy link
Contributor Author

wyattscarpenter commented Sep 19, 2025

Possibly we should just use clever redirects instead, which is sort of a Sphinx feature to some extent. (Edit: I may one day figure out Sphinx redirects, but for now this fix is fine.)

@wyattscarpenter wyattscarpenter marked this pull request as ready for review October 11, 2025 00:46
@hauntsaninja hauntsaninja merged commit 3618369 into python:master Nov 2, 2025
2 checks passed
@wyattscarpenter wyattscarpenter deleted the patch-1 branch November 3, 2025 11:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants